﻿@using PortalIntranet.InternalComponents.Common;
@using PortalIntranet.ObjectComponents.WebParts.Ramais;

@model PortalIntranet.ObjectComponents.WebParts.WebPartBaseInfo

@{
	var model = (WPRamais)Model;
}

<div class="w-box-content" style="height: @(model.Altura <= 0 ? "auto" : model.Altura.ToString() + "px"); overflow: auto;">
	<table id="dt_basic" class="dataTables_full table table-bordered table-striped table-hover">
		<thead>
			<tr>
				<th>Nome</th>
				<th>Email</th>
				<th>Telefone</th>
				<th>Departamento</th>
			</tr>
		</thead>
		<tbody>
			@{
				foreach (var item in model.Ramais)
				{
					<tr>
						<td>@item.Nome</td>
						<td><a href="mailto:@item.Email">@item.Email</a></td>
						<td>@item.Telefone</td>
						<td>@item.Departamento</td>
					</tr>
				}
			}
		</tbody>
	</table>
</div>